<?php

class Application_Model_Comment extends Asd_Model
{
    public function __construct($id = null) {
        parent::__construct(new Application_Model_DbTable_Comment(), $id);
    }
    
    public function getComments($id) {
        return $this->_dbTable->fetchAll($this->_dbTable->select()
                ->from('comments')
                ->where('comment_id = ?', $id)
                ->order('date'));
        
    }
}

